package com.hgt.cloudAlibaba.dao;

import com.hgt.cloudAlibaba.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author HuangGaoTao 929507053@qq.com
 * @Created: 2021/7/21 17:13
 */
@Mapper
public interface OrderDao {

    //新建订单
    void create(Order order);

    //修改订单状态，从零改为1
    void update(@Param("userId") Long userId, @Param("status") Integer status);
}
